﻿#ifndef _MAIN_H_
#define _MAIN_H_




#include "stdio.h"


#if 0
#define my_debug( tag, format, ... ) \
printf("%s %s:%d",tag,__FILE__, __LINE__); \
printf(format,##__VA_ARGS__);\
printf("\r\n");
#elif 1
#define my_debug( tag, format, ... ) \
printf("%s",tag); \
printf(format,##__VA_ARGS__);\
printf("\r\n");
#else
#define my_debug( tag, format, ... ) ;
#endif


#if 1
#define main_debug(format, ...) my_debug("[main]- ",format,##__VA_ARGS__);
#else
#define main_debug(format, ...) ;
#endif


#include "lvgl_project.h"
#include "my_system.h"

#define x_malloc malloc
#define x_free(p) if(p!=NULL)free(p)



#endif
